package com.wyy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyy.beans.ResourceRole;
import com.wyy.beans.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ResourceRoleDao extends BaseMapper<ResourceRole> {

    @Delete("delete from resource_role where role_id = #{roleId}")
    int deleteResourceRoleByRoleId(long roleId);

    @Delete("delete from resource_role where resource_id = #{resourceId}")
    int deleteRoleResourceByResourceId(long resourceId);

}
